<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>封装弹框</title>
    <script src="https://unpkg.com/vue@3/dist/vue.global.js"></script>
    <script src="弹框组件.js"></script>
</head>

<body>
    <button onclick="btnclick()">显示弹出组件</button>
    <script>
        function btnclick(){
            console.log("显示弹出组件");
            弹框组件("弹窗内容")
        }
        const { createApp } = Vue
    </script>
</body>

</html>